home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Guided Tour of Multimedia (Second Edition)
/
The Guided Tour of Multimedia (Second Edition).iso
/
trials
/
director
/
evalcopy
/
director.z
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1994-06-02
|
3KB
|
135 lines
########################################################################
#
# Macromedia CommPort Makefile
#
# (c) Copyright 1993 Macromedia
# All Rights Reserved
#
########################################################################
# Name of the system being built
NAME = CommPort
# Select the type of build (one of the two):
#BUILD = $(PROG)
BUILD = $(DLL)
# Select whether debugging is to be enabled
#DEBUG = YES
DEBUG = NO
#
# Memory model to use for building the system
MODEL = L
#
# Derived filenames
PROG = $(NAME).exe
DLL = $(NAME).dll
RES = $(NAME).res
DEF = $(NAME).def
#
# Header files used by the sources
HDRS =
#
# Source files
SRCS = $(ASMS) commport.c
#
# Assembler Source files
ASMS =
#
# All objects used in the system
OBJS = commport.obj
#
# Local Include Directory
INCDIR = -I..\include
#
# Libraries required to be explicitly linked
LIBS = $(MODEL)dllcew libw
#
# Flags for Assembling, Compiling and Linking
!if "$(DEBUG)" == "NO"
# Non-debugging options
#
AFLAGS =
!if "$(BUILD)" == "$(PROG)"
CFLAGS = $(INCDIR) -DMSW -A$(MODEL) -G2sw -Ox -W2 -Zp -D_WINDOWS
!endif
!if "$(BUILD)" == "$(DLL)"
CFLAGS = $(INCDIR) -DMSW -A$(MODEL)w -G2sw -Ox -W2 -Zp -D_WINDOWS -D_WINDLL
!endif
LFLAGS = /al:16/m/NOD
CVPACK = REM
!else
# Debugging options
#
AFLAGS = -DDEBUG -Zi
!if "$(BUILD)" == "$(PROG)"
CFLAGS = $(INCDIR) -DMSW -A$(MODEL) -Gsw -Od -W2 -Zip -DDEBUG -D_WINDOWS
!endif
!if "$(BUILD)" == "$(DLL)"
CFLAGS = $(INCDIR) -DMSW -A$(MODEL)w -Gsw -Od -W2 -Zip -DDEBUG -D_WINDOWS -D_WINDLL
!endif
LFLAGS = /al:16/m/NOD/CO/li
CVPACK = cvpack
!endif
#
# Start of actual targets
all: $(BUILD)
#
# Make the program
$(PROG) $(DLL): $(OBJS) $(DEF) $(RES)
LINK $(LFLAGS) @<<
$(OBJS)
$@
$(NAME).map
$(LIBS)
$(DEF)
<<
mapsym /n $(NAME).map
$(CVPACK) -p $@
rc $(RES) $@
#
# Build the DLL interface library
$(NAME).lib: $(DEF)
implib $(NAME).lib $(DEF)
# Resource file
$(RES): $(NAME).rc
rc -r $(NAME).rc
# Clean up directory
clean:
del *.obj
del *.res
del *.sym
del *.map
del *.exe
del *.dll
del *.bak
del *.lib
# Make dependency list
depend:
makedep $(INCDIR) > makefile.new @<<
$(SRCS)
<<
DEL makefile.BAK
REN makefile makefile.BAK
REN makefile.new makefile
# DO NOT DELETE THIS LINE
commport.obj: ..\include/XObject.h